﻿<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle('Bento Localization Portal | Jonckers');
echo $this->doctype();
?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head >
	<?php echo $this->headMeta();?>
	<?php echo $this->headTitle();?>
	<?php echo $this->headStyle();?>
	<?php echo $this->headLink()->prependStylesheet($this->baseUrl('/css/style.css'));?>	
	<?php echo $this->headScript()->prependFile($this->baseUrl("/js/jquery-1.6.2.min.js"));?>
	<style>
		#container{
			background-image:url('/images/Mercator-body.png');
			background-repeat:no-repeat;
			background-attachment:fixed;
			z-index:9;
			width:100%;
		}
		
		#header{
			background-image:url('/images/Mercator-head.png');
			background-repeat:no-repeat;
			z-index:10;
		}
	</style>
</head>
<body>	
<div id="container">
	<div id="header">
		<a href="http://www.jonckers.com/">
			<img style="margin:20px" src="<?php echo $this->baseUrl('/images/logo-slogan.png')?>" />
		</a>
		<ul id="nav">
			<li <?php echo $this->activeDocumentation ? "class='active'": ""  ;?>>
				<a href="<?php echo $this->baseUrl('/index/documentation/');?>">Documentation</a>
			</li>
			<li><span>|</span></li>
			<li <?php echo $this->activeContact? "class='active'": ""  ;?>>
				<a href="<?php echo $this->baseUrl('/index/contact/');?>">Contact Us</a>
			</li>
			<li>
				<form method="post" action="<?php echo $this->url(); ?>" enctype="application/x-www-form-urlencoded" id="translationLanguage">
					<select name="msmtlanguage" id="msmtlanguage" style="margin-top:-5px">
						<?php foreach(Zend_Registry::get('languages') as $key => $value):?>
						<option value="<?php echo $key;?>" 
							<?php if($_SESSION['msmtlanguage']['language'] == "$key"):?>
								selected="selected"
							<?php endif;?>								
						>
							<?php echo $value;?>								
						</option>
						
						<?php endforeach;?>
					</select>
				</form>
			</li>
		</ul>
	</div>
	<div id="content-body">
		<div id="wrapper">
			<div id="main-content">
				<?php echo $this->layout()->content; ?>
			</div>
		</div>	
		<div id="navigation">
			<div id="sidebar" class="col2">
				<ul>
					<li class="pagenavtitle">
						<h2 class="widgettitle"><?php echo $this->profileInfo();?></h2>
					</li>
									
					<li class="pagenav<?php echo $this->myAccount ? ' pagenav_active': ''?>">
						<a href="<?php echo $this->baseUrl('/myaccount/index/');?>">My account</a>
					</li>
													
					<li class="pagenav">
						<a href="<?php echo $this->baseUrl('user/auth/logout/');?>">LOGOUT</a>
					</li>
				</ul>
			</div>

		</div>
		<br style="clear:both"/>
	</div>	
	<div id="footer">
		<p class="footertext">
			&copy; 2011 - <?php echo date('Y'); ?>, <span>Jonckers Translation and Engineering.</span> All Rights Reserved.
		</p>
	</div>
</div>

<script type="text/javascript">
	$(function(){
		$("#msmtlanguage").change(function(){
			<?php 			
			if($_SESSION['msmtlanguage']['showWarningMessage']):?>			
				alert("This is a machine translated page which is provided \"as is\" without warranty.Machine translation may be difficult to understand. Please refer to English pages whenever possible.");
			<?php endif;?>
			$("#translationLanguage").submit();
		});
	});
</script>

<script type="text/javascript">
	$(document).ready( function(){
		$("#sidebar li.pagenav").each(function(index){
			$(this).hover( function(){
				$(this).attr("style", "cursor:pointer;cursor:hand;");
			}, function(){
				$(this).attr("style", "cursor:default;");
			});
			$(this).click(function(event){
			    window.location = $(this).find("a").attr("href");				
			});
		});
		
		$("#sidebar a").each(function(index){
			$(this).click(function(event){
			    event.preventDefault();
			});
		});
	});
</script>
</body>
</html>
